#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main() {
	int n = 0;
	scanf("%d", &n);
	for (int z = 1; z <= n; z++)
	{
		for (int i = 1; i <= z; i++)
		{
			if (i == z)
				printf("%d*%d=%-4d\n", i, z, z * i);
			else printf("%d*%d=%-4d", i, z, z * i);
		}
	}
	return 0;
}